<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:zj="http://www.zju.edu.cn" elementFormDefault="qualified">
  <xs:import namespace="http://www.zju.edu.cn" schemaLocation="DataItem.xsd"/>
  <xs:element name="Toolkit">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="zj:Table"/>
      </xs:sequence>
      <xs:attribute name="version" default="2.0" type="xs:string"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="RefValue">
    <xs:complexType>
      <xs:attribute name="Field" use="required" type="xs:string"/>
      <xs:attribute name="RefField" use="required" type="xs:string"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="Link">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded"/>
      <xs:attribute name="ID" type="xs:string"/>
      <xs:attribute name="Target" type="xs:string" default="_blank"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="Attribute">
    <xs:complexType>
      <xs:attribute name="Name" use="required" type="xs:string"/>
      <xs:attribute name="Value" use="required" type="xs:string"/>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="ExpressionType" mixed="true">
    <xs:choice minOccurs="0" maxOccurs="unbounded"/>
    <xs:attribute name="NeedParse" type="xs:boolean"/>
    <xs:attribute name="SQLInject" type="xs:boolean"/>
    <xs:attribute name="EmptyMarco" type="xs:string"/>
  </xs:complexType>
  <xs:complexType name="UpdatingType" mixed="true">
    <xs:complexContent>
      <xs:restriction base="ExpressionType">
        <xs:attribute name="UpdateKind" use="required">
          <xs:simpleType>
            <xs:restriction base="xs:NMTOKEN">
              <xs:enumeration value="Insert"/>
              <xs:enumeration value="InsUpd"/>
              <xs:enumeration value="Update"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>
</xs:schema>
